const Layout = () => import("@/layout/index.vue");

export default [
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登录",
      showLink: false,
      rank: 101
    }
  },
  {
    path: "/redirect",
    component: Layout,
    meta: {
      title: "加载中...",
      showLink: false,
      rank: 102
    },
    children: [
      {
        path: "/redirect/:path(.*)",
        name: "Redirect",
        component: () => import("@/layout/redirect.vue")
      }
    ]
  },
  {
    path: "/configuration-page",
    name: "configuration-page",
    redirect: "/configuration-page/configuration-page",
    meta: {
      title: "组态",
      showLink: false
    },
    children: [
      {
        path: "/configuration-page/configuration-page",
        name: "configuration-pages",
        meta: {
          title: "组态设计",
          showLink: false
        },
        component: () => import("@/views/configuration-page/index.vue")
      },
      {
        path: "/configuration-page/configuration-page/views",
        name: "configuration-pages-views",
        meta: {
          title: "组态预览",
          showLink: false
        },
        component: () => import("@/views/configuration-page/index.vue")
      }
    ]
  },
  {
    path: "/map",
    name: "map",
    component: () =>
      import(
        "@/views/large-data-screen/layoutscrreen/contentbg/components/mapmark.vue"
      ),
    meta: {
      title: "地图",
      showLink: false,
      rank: 101
    }
  },
  {
    path: "/unitymap",
    name: "unitymap",
    component: () =>
      import(
        "@/views/large-data-screen/layoutscrreen/contentbg/components/unitymap.vue"
      ),
    meta: {
      title: "地图",
      showLink: false,
      rank: 101
    }
  },
  {
    path: "/protocolContent",
    meta: {
      title: "协议详情",
      showLink: false,
      rank: 102
    },
    children: [
      {
        path: "/protocolContent",
        name: "protocolContent",
        component: () => import("@/views/login/components/protocolContent.vue")
      }
    ]
  }
] satisfies Array<RouteConfigsTable>;
